let app = getApp();

Component({
  properties: {
    type: {
      type: String,
      value: 'normal',
    },
    info: {
      type: Object,
      value: {
        text: '',
        tapEvent: '',
      },
    },
    custom: {
      type: Object,
      value: {
        width: '',
        height: '',
        fontSize: '',
        color: '',
        leftBgColor: '',
        rightBgColor: '',
        borderWidth: '',
        borderStyle: '',
        borderColor: '',
        borderRadius: '',
        textAlign: '',
      },
    },
  },
  data: {
  },
  methods: {
    _trigger(e) {
      let { event = '' } = e.currentTarget.dataset;
      this.triggerEvent(event, e.detail);
    },
    
  },
});
